Rsd.createApplication({
        appTitle: 'Hermes H5',
        appName: 'Rsd.Hermes',
        appFolder: './src',
        apiHost:[{url:'http://admin.redmicro.cn/',}],
        loginUrl: 'login',
        indexUrl: 'release.html',
        isDebug:false,
        appVersion:'1.0.0.1',
        appDate:new Date().getTime(),//开发时使用
        //appDate:new Date('2018-08-07').getTime(),
        isDemo:window.location.protocol == 'file:',
        imgHost:'http://image.redmicro.cn/',
        requires:[],
        beforeRun:function beforeRun() {
            Rsd.onResize(function () {
                Rsd.defineRem(Rsd.isMobile()?640:800);
            });
            //Rsd.loadPlugin('plugin/jquery/jquery.md5.js');
            //Rsd.loadScriptFile('./resources/storages/enums.js');
            //Rsd.alert("您当前使用的浏览器是：" + Rsd.detectNavigator());
            //Rsd.alert("您当前使用的操作系统是：" + Rsd.detectOS());
        },
        launch: function launch() {
             
            var _spm = Rsd.getUrlParam('spm')||'';
            var _class = Rsd.getUrlParam('view')||''; 
            var _class = _class || 'Merch';
            var _wap = Rsd.create('Rsd.myths.pages.' + _class + 'Wap', {spm:_spm});
            document.title = _wap.title || this.appTitle;
            this.currentPage = page; 
            _wap.show();

        },
        /**
         * 
         */
        goto:function goto(page,args)
        {
            window.location.href =  window.location.origin  + window.location.pathname + '?view='+(page||'home')+'&' + (args||'');
        }
    }
);